import Vue from 'vue'
import App from './App.vue'
import router from './router'
import './service/flexible.js'
import '@/assets/iconfont/iconfont.css'
import Toast from '@/components/common/Toast.vue'
new Vue({
  router,
  render: h => h(App)
}).$mount('#app')

Vue.component('Toast', Toast)
Vue.prototype.$toast = {
  show: (msg, type = 'info', duration = 3000) => {
    const Constructor = Vue.extend(Toast)
    const instance = new Constructor().$mount()
    document.body.appendChild(instance.$el)
    instance.show(msg, type, duration)
  }
}
console.log(1);

console.log(`环境对象：${JSON.stringify(process.env)}`) // 当前系统的环境变量 可以获取到一些信息
console.log(`环境：${process.env.NODE_ENV} - ${process.env.VUE_APP_CURRENTMODE} - ${process.env.VUE_APP_SERVE} - ${process.env.VUE_APP_TITLE}`)
